package com.fis.hlo.pm.client;

import java.net.URL;

import javax.xml.namespace.QName;

import com.fis.hlo.pm.tmpiradj.PMTmpIrAdjustTransferer;
import com.fis.hlo.pm.tmpiradj.PMTmpIrAdjustTransfererService;
import com.fis.mca.config.Config;
import com.fis.mca.config.ConfigConstant;

public class TmpIrAdjustTransfererClient {

	private static final QName SERVICE_NAME = new QName(
			"http://tmpiradj.pm.hlo.fis.com/", "PMTmpIrAdjustTransfererService");
	private static final String WSDL_URL = Config
			.getURL(ConfigConstant.PM_TMP_IR_ADJ_PORT_KEY);

	public static PMTmpIrAdjustTransferer getService() throws Exception {
		URL url = new URL(WSDL_URL);
		PMTmpIrAdjustTransfererService ss = new PMTmpIrAdjustTransfererService(
				url, SERVICE_NAME);
		PMTmpIrAdjustTransferer port = ss.getPMTmpIrAdjustTransfererPort();
		return port;
	}

}
